package com.example.combwyaq.mvp.contract;

import com.example.combwyaq.mvp.model.entity.BaseEntity;
import com.example.combwyaq.mvp.model.IModel;
import com.example.combwyaq.mvp.model.entity.UserItemEntity;
import com.example.combwyaq.mvp.model.entity.UserMenuEntity;
import com.example.combwyaq.mvp.viwe.IView;


import java.util.List;
import java.util.Map;
import io.reactivex.Observable;

public interface UserContract {

    interface IUserModel extends IModel{
            Observable<BaseEntity> requestUser(Map<String,Object> map);

    }
    interface IUserView extends IView{
        //用户信息回调方法,今日签到任务列表
        void refresh(BaseEntity entity);
        //用户菜单界面
        void refreshMenu(List<UserMenuEntity> menuEntities);
        //积分商城等item
        void refreshItemes(List<UserItemEntity> itemEntities);

    }

}
